package com.project.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.bean.ConsultBean;
import com.project.dao.ConsultDao;
import com.project.service.ConsultService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 会商
 */
@Service
@Transactional
public class ConsultServiceImpl extends ServiceImpl<ConsultDao, ConsultBean> implements ConsultService {
    @Override
    public List<ConsultBean> findAllConsult() {
        return this.baseMapper.findAllConsult();
    }

    @Override
    public void addConsult(ConsultBean consultBean) {
        this.baseMapper.addConsult(consultBean);
    }

    @Override
    public void updateConsult(int eventId, String consultResult) {
        this.baseMapper.updateConsult(eventId,consultResult);
    }
}
